const {ccclass, property} = cc._decorator;

@ccclass
export default class sceneTab extends cc.Component {

    // LIFE-CYCLE CALLBACKS:

    onLoad () {
        
    }

    start () {
        // cc.director.preloadScene()

        this.node.on(cc.Node.EventType.TOUCH_START, ()=>{
            this.node.emit('event1');
        }, this);

        this.node.on('event1', ()=>{
            console.log('发生触摸了');
        })
    }

    // update (dt) {}
}